home *** CD-ROM | disk | FTP | other *** search
- function LinguaInterface()
- {
- if(_global.lingua == "pt")
- {
- _root.myDataGrid.getColumnAt(0).headerText = "N┬║";
- _root.myDataGrid.getColumnAt(1).headerText = "NOME";
- _root.myDataGrid.getColumnAt(2).headerText = "CATEGORIA";
- _root.pesq_txt.pesq_txt.text = "Pesquisar por:";
- _root.busca.label = "Buscar";
- _root.todos.label = "Listar Todos";
- _root.sbtest.sub_txt.text = "SUB-CATEGORIAS -";
- _global.list_all = "Listar Todos";
- _root.categoria_mc.categoria_txt.text = "CATEGORIA";
- _root.categoria_mc.voltar_txt.text = "voltar";
- _root.descri.textodescr_mc.con_txt.text = "Controles / Aviso:";
- _root.descri.textodescr_mc.desc_txt.text = "Descrição:";
- _root.descri.textodescr_mc.lic_txt.text = "Licença:";
- _root.label_botao();
- }
- else if(_global.lingua == "sp")
- {
- _root.myDataGrid.getColumnAt(0).headerText = "N┬║";
- _root.myDataGrid.getColumnAt(1).headerText = "NOMBRE";
- _root.myDataGrid.getColumnAt(2).headerText = "CATEGORÍA";
- _root.pesq_txt.pesq_txt.text = "Buscar por:";
- _root.busca.label = "B├║squeda";
- _root.todos.label = "Enumerar todos";
- _root.sbtest.sub_txt = "SUBCATEGORÍA -";
- _global.list_all = "Enumerar todos";
- _root.categoria_mc.categoria_txt = "CATEGORÍA";
- _root.categoria_mc.voltar_txt = "VOLVER";
- _root.descri.textodescr_mc.con_txt.con = "Controles:";
- _root.descri.textodescr_mc.desc_txt.desc = "Descripci├│n:";
- _root.descri.textodescr_mc.lic_txt.lic = "Licencia:";
- _root.label_botao();
- }
- else if(_global.lingua == "en")
- {
- _root.myDataGrid.getColumnAt(0).headerText = "N┬║";
- _root.myDataGrid.getColumnAt(1).headerText = "NAME";
- _root.myDataGrid.getColumnAt(2).headerText = "CATEGORY";
- _root.pesq_txt.pesq_txt.text = "Search for:";
- _root.busca.label = "Search";
- _root.todos.label = "Full list";
- _root.sbtest.sub_txt.text = "SUBCATEGORY -";
- _global.list_all = "FULL LIST";
- _root.categoria_mc.categoria_txt.text = "CATEGORY";
- _root.categoria_mc.voltar_txt.text = "back";
- _root.descri.textodescr_mc.con_txt.text = "Control:";
- _root.descri.textodescr_mc.desc_txt.text = "Description:";
- _root.descri.textodescr_mc.lic_txt.text = "License:";
- _root.label_botao();
- }
- }
- function Categoria(Categoria_xml)
- {
- function leia()
- {
- _root.myDataGrid.dataProvider.removeAll();
- max = leitor.firstChild.childNodes.length;
- var _loc14_ = Array();
- var _loc8_ = Array();
- var _loc15_ = Array();
- var _loc13_ = Array();
- var _loc10_ = Array();
- var _loc11_ = Array();
- var _loc9_ = Array();
- var _loc6_ = Array();
- var _loc7_ = Array();
- var _loc12_ = Array();
- var _loc5_ = Array();
- var _loc29_ = new Object();
- var _loc30_ = Array();
- var _loc4_ = Array();
- titulo = leitor.firstChild.attributes.name;
- _root.categoria_mc.Categoria_titulo = titulo;
- if(leitor.firstChild.attributes.subCategoria == "true")
- {
- _global.num = 1;
- _root.subCategoria_cb.removeAll();
- maxSub = leitor.firstChild.childNodes[0].childNodes.length;
- _global.mostraSub = true;
- _root.subCategoria_cb.addItem({label:_global.list_all,data:"all"});
- i = 0;
- while(i < maxSub)
- {
- _loc4_[i] = leitor.firstChild.childNodes[0].childNodes[i].firstChild;
- _root.subCategoria_cb.addItem({label:_loc4_[i],data:_loc4_[i]});
- i++;
- }
- }
- else
- {
- _global.num = 0;
- _root.subCategoria_cb.removeAll();
- _global.mostraSub = false;
- }
- i = _global.num;
- while(i < max)
- {
- _loc14_[i] = leitor.firstChild.childNodes[i].childNodes[0].firstChild.nodeValue;
- _loc8_[i] = leitor.firstChild.childNodes[i].childNodes[1].firstChild.nodeValue;
- _loc15_[i] = leitor.firstChild.childNodes[i].childNodes[2].firstChild.nodeValue;
- _loc13_[i] = leitor.firstChild.childNodes[i].childNodes[3].firstChild.nodeValue;
- _loc10_[i] = leitor.firstChild.childNodes[i].childNodes[4].firstChild.nodeValue;
- _loc11_[i] = leitor.firstChild.childNodes[i].childNodes[5].firstChild.nodeValue;
- _loc9_[i] = leitor.firstChild.childNodes[i].childNodes[6].firstChild.nodeValue;
- _loc6_[i] = leitor.firstChild.childNodes[i].childNodes[7].firstChild.nodeValue;
- _loc7_[i] = leitor.firstChild.childNodes[i].childNodes[8].firstChild.nodeValue;
- _loc12_[i] = leitor.firstChild.childNodes[i].childNodes[9].firstChild.nodeValue;
- _loc5_[i] = leitor.firstChild.childNodes[i].childNodes[10].firstChild.nodeValue;
- _root.myDataGrid.dataProvider.addItem({NUMERO:_loc14_[i],NOME:_loc8_[i],CATEGORIA:_loc15_[i],DESCRICAO:_loc13_[i],LICENCA:_loc10_[i],LIMITACAO:_loc11_[i],CAMINHO:_loc9_[i],IMAGEM:_loc6_[i],CONTROLE:_loc7_[i],COMANDOS:_loc12_[i],AVISO:_loc5_[i]});
- i++;
- }
- if(_loc5_[_global.num] == undefined or _loc5_[_global.num] == "-")
- {
- _root.aviso.gotoAndStop(1);
- this.setSize(515,348);
- _global.tem_aviso = false;
- }
- else
- {
- _global.tem_aviso = true;
- _global.pri_aviso = _loc5_[_global.num];
- }
- _root.descri._visible = false;
- _root.descri.gotoAndStop(3);
- _root.descri.nome.text = _loc8_[_global.num];
- _root.descri.controles_txt.text = _loc7_[_global.num];
- _root.descri.descri.text = _loc13_[_global.num];
- _root.descri.caminho.text = _loc9_[_global.num];
- _root.descri.licenca.text = _loc10_[_global.num];
- _root.descri.limitação.text = _loc11_[_global.num];
- _root.descri.comando.text = _loc12_[_global.num];
- _root.descri.controles.text = _loc7_[_global.num];
- _root.aviso.informacao.text = _loc5_[_global.num];
- _root.descri.visible = false;
- loadMovie(".\\interface\\imagens\\" + _loc6_[_global.num] + ".jpg",_root.descri.foto.foto);
- }
- var leitor = new XML();
- if(_global.lingua == "pt")
- {
- _global.var_source = "XML\\" + Categoria_xml + ".xml";
- }
- else if(_global.lingua == "sp")
- {
- _global.var_source = "XML_SP\\" + Categoria_xml + ".xml";
- }
- else if(_global.lingua == "en")
- {
- _global.var_source = "XML_EN\\" + Categoria_xml + ".xml";
- }
- else
- {
- _global.var_source = "XML\\" + Categoria_xml + ".xml";
- }
- leitor.load(_global.var_source);
- leitor.onLoad = leia;
- leitor.ignoreWhite = true;
- System.useCodepage = true;
- LinguaInterface();
- _root.myDataGrid.resizableColumns = false;
- }
- function Buscar()
- {
- function leiaBusca()
- {
- _root.myDataGrid.dataProvider.removeAll();
- max = leitor.firstChild.childNodes.length;
- var _loc14_ = Array();
- var _loc5_ = Array();
- var _loc15_ = Array();
- var _loc12_ = Array();
- var _loc7_ = Array();
- var _loc8_ = Array();
- var _loc6_ = Array();
- var _loc11_ = Array();
- var _loc13_ = Array();
- var _loc9_ = Array();
- var _loc10_ = Array();
- var _loc28_ = new Object();
- var _loc27_ = Array();
- j = 0;
- i = _global.num;
- while(i < max)
- {
- _loc14_[i] = leitor.firstChild.childNodes[i].childNodes[0].firstChild.nodeValue;
- _loc5_[i] = leitor.firstChild.childNodes[i].childNodes[1].firstChild.nodeValue;
- _loc15_[i] = leitor.firstChild.childNodes[i].childNodes[2].firstChild.nodeValue;
- _loc12_[i] = leitor.firstChild.childNodes[i].childNodes[3].firstChild.nodeValue;
- _loc7_[i] = leitor.firstChild.childNodes[i].childNodes[4].firstChild.nodeValue;
- _loc8_[i] = leitor.firstChild.childNodes[i].childNodes[5].firstChild.nodeValue;
- _loc6_[i] = leitor.firstChild.childNodes[i].childNodes[6].firstChild.nodeValue;
- _loc11_[i] = leitor.firstChild.childNodes[i].childNodes[7].firstChild.nodeValue;
- _loc13_[i] = leitor.firstChild.childNodes[i].childNodes[8].firstChild.nodeValue;
- _loc9_[i] = leitor.firstChild.childNodes[i].childNodes[9].firstChild.nodeValue;
- _loc10_[i] = leitor.firstChild.childNodes[i].childNodes[10].firstChild.nodeValue;
- if(_root.chave.text != "")
- {
- var _loc4_ = undefined;
- _loc4_ = _root.chave.text;
- _loc4_ = _loc4_.toLowerCase();
- var _loc3_ = new String(_loc5_[i]);
- _loc3_ = _loc3_.toLowerCase();
- if(_loc3_.indexOf(_loc4_,0) != -1)
- {
- _loc27_[j] = leitor.firstChild.childNodes[i].childNodes[0].firstChild.nodeValue;
- _root.myDataGrid.vPosition = 1;
- _root.myDataGrid.dataProvider.addItem({NUMERO:_loc14_[i],NOME:_loc5_[i],CATEGORIA:_loc15_[i],DESCRICAO:_loc12_[i],LICENCA:_loc7_[i],LIMITACAO:_loc8_[i],CAMINHO:_loc6_[i],IMAGEM:_loc11_[i],CONTROLE:_loc13_[i],COMANDOS:_loc9_[i],AVISO:_loc10_[i]});
- j++;
- }
- }
- else
- {
- _root.myDataGrid.dataProvider.addItem({NUMERO:_loc14_[i],NOME:_loc5_[i],CATEGORIA:_loc15_[i],DESCRICAO:_loc12_[i],LICENCA:_loc7_[i],LIMITACAO:_loc8_[i],CAMINHO:_loc6_[i],IMAGEM:_loc11_[i],CONTROLE:_loc13_[i],COMANDOS:_loc9_[i],AVISO:_loc10_[i]});
- }
- i++;
- }
- _root.chave.text = "";
- }
- var leitor = new XML();
- leitor.load(_global.var_source);
- leitor.onLoad = leiaBusca;
- leitor.ignoreWhite = true;
- System.useCodepage = true;
- }
- function SubCategorias()
- {
- function leiaSub()
- {
- _root.myDataGrid.dataProvider.removeAll();
- max = leitor.firstChild.childNodes.length;
- var _loc13_ = Array();
- var _loc4_ = Array();
- var _loc3_ = Array();
- var _loc11_ = Array();
- var _loc6_ = Array();
- var _loc7_ = Array();
- var _loc5_ = Array();
- var _loc10_ = Array();
- var _loc12_ = Array();
- var _loc8_ = Array();
- var _loc9_ = Array();
- var _loc25_ = new Object();
- var _loc26_ = Array();
- i = _global.num;
- while(i < max)
- {
- _loc13_[i] = leitor.firstChild.childNodes[i].childNodes[0].firstChild.nodeValue;
- _loc4_[i] = leitor.firstChild.childNodes[i].childNodes[1].firstChild.nodeValue;
- _loc3_[i] = leitor.firstChild.childNodes[i].childNodes[2].firstChild.nodeValue;
- _loc11_[i] = leitor.firstChild.childNodes[i].childNodes[3].firstChild.nodeValue;
- _loc6_[i] = leitor.firstChild.childNodes[i].childNodes[4].firstChild.nodeValue;
- _loc7_[i] = leitor.firstChild.childNodes[i].childNodes[5].firstChild.nodeValue;
- _loc5_[i] = leitor.firstChild.childNodes[i].childNodes[6].firstChild.nodeValue;
- _loc10_[i] = leitor.firstChild.childNodes[i].childNodes[7].firstChild.nodeValue;
- _loc12_[i] = leitor.firstChild.childNodes[i].childNodes[8].firstChild.nodeValue;
- _loc8_[i] = leitor.firstChild.childNodes[i].childNodes[9].firstChild.nodeValue;
- _loc9_[i] = leitor.firstChild.childNodes[i].childNodes[10].firstChild.nodeValue;
- if(_global.sub == "all")
- {
- _root.myDataGrid.dataProvider.addItem({NUMERO:_loc13_[i],NOME:_loc4_[i],CATEGORIA:_loc3_[i],DESCRICAO:_loc11_[i],LICENCA:_loc6_[i],LIMITACAO:_loc7_[i],CAMINHO:_loc5_[i],IMAGEM:_loc10_[i],CONTROLE:_loc12_[i],COMANDOS:_loc8_[i],AVISO:_loc9_[i]});
- }
- else if(escape(_global.sub) == escape(_loc3_[i]))
- {
- _root.myDataGrid.dataProvider.addItem({NUMERO:_loc13_[i],NOME:_loc4_[i],CATEGORIA:_loc3_[i],DESCRICAO:_loc11_[i],LICENCA:_loc6_[i],LIMITACAO:_loc7_[i],CAMINHO:_loc5_[i],IMAGEM:_loc10_[i],CONTROLE:_loc12_[i],COMANDOS:_loc8_[i],AVISO:_loc9_[i]});
- }
- _root.myDataGrid.vPosition = 0;
- i++;
- }
- }
- var leitor = new XML();
- leitor.load(_global.var_source);
- leitor.onLoad = leiaSub;
- leitor.ignoreWhite = true;
- System.useCodepage = true;
- }
- stop();
- if(_global.styles.DataGrid == undefined)
- {
- _global.styles.DataGrid = new mx.styles.CSSStyleDeclaration();
- }
- var dataGridHeaderStyles = new mx.styles.CSSStyleDeclaration();
- dataGridHeaderStyles.setStyle("color",16777215);
- dataGridHeaderStyles.setStyle("fontWeight","bold");
- if(_global.styles.DataGrid == undefined)
- {
- _global.styles.DataGrid = new mx.styles.CSSStyleDeclaration();
- }
- var dataGridHeaderStyles = new mx.styles.CSSStyleDeclaration();
- _global.styles.DataGrid.setStyle("fontFamily","Verdana");
- _global.styles.DataGrid.setStyle("fontSize",11);
- _global.styles.DataGrid.setStyle("themeColor",13096683);
- _global.styles.DataGrid.setStyle("headerColors",[13096683,16777215]);
- _global.styles.DataGrid.setStyle("alternatingRowColors",[16777215,16120316]);
- _global.styles.DataGrid.setStyle("rollOverColor",16773313);
- _global.styles.DataGrid.setStyle("backgroundColor",13096683);
- _global.styles.DataGrid.setStyle("borderStyle","alert");
- _global.styles.DataGrid.setStyle("borderColor",13096683);
- _global.styles.DataGrid.setStyle("vGridLineColor",13096683);
- _global.styles.DataGrid.setStyle("hGridLineColor",13096683);
- _global.lingua = "en";
- _global.style.setStyle("fontFamily","Verdana");
- volta_inicio = function()
- {
- _level6.naveg_volta();
- _root.secoes.gotoAndstop("aqui");
- _root.categoria_mc.play();
- anula_btn._visible = false;
- _root.descri.gotoAndStop(1);
- };
- onEnterFrame = function()
- {
- if(categoria_mc._currentframe == 1)
- {
- anula_btn._visible = false;
- anula_btn.useHandCursor = false;
- }
- else
- {
- anula_btn._visible = true;
- anula_btn.useHandCursor = false;
- }
- };
- _root.myDataGrid.setStyle("alternatingRowColors",[16777215,15197924]);
- _root.myDataGrid.columnNames = ["NUMERO","NOME","CATEGORIA","DESCRICAO","LICENCA","LIMITACAO","CAMINHO","IMAGEM","CONTROLES","COMANDOS","AVISO"];
- _root.myDataGrid.getColumnAt(0).headerText = "N┬║";
- _root.myDataGrid.getColumnAt(0).width = 32;
- _root.myDataGrid.getColumnAt(0).textAlign = "center";
- _root.myDataGrid.getColumnAt(1).width = 285;
- _root.myDataGrid.getColumnAt(2).textAlign = "center";
- _root.myDataGrid.getColumnAt(2).width = 185;
- _root.myDataGrid.getColumnAt(3).width = 190;
- _root.myDataGrid.getColumnAt(4).width = 190;
- _root.myDataGrid.selectable = true;
- _root.myDataGrid.refresh();
- _root.subCategoria_cb.setStyle("themeColor",13421772);
-